package com.bwie.product.service.impl;

import com.bwie.common.core.domain.Result;
import com.bwie.product.domain.vo.AttrGroupVo;
import com.bwie.product.mapper.AttrGroupVoMapper;
import com.bwie.product.service.AttrGroupVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AttrGroupVoServiceImpl implements AttrGroupVoService {
    @Autowired
    private AttrGroupVoMapper attrGroupVoMapper;

    /**
     * 根据attrGroupId查询属性组信息
     * @param attrGroupId
     * @return
     */
    @Override
    public  Result<List<AttrGroupVo>> selectAttrGroupVoList(Long attrGroupId) {
        List<AttrGroupVo> attrGroupVos = attrGroupVoMapper.selectAttrGroupVoList(attrGroupId);
        return Result.success(attrGroupVos);
    }
}
